|
CATIA V5 Programmierung : eine Fläche Benutzerunabhängig einfärben
RBB86 am 23.02.2010 um 15:29 Uhr (0)
Danke,Aber woher weist Catia welche Fläche ich einfärben möchte? Ich möchte es ohne dass ich eine mit der Maus auswählen muss
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : eine Fläche Benutzerunabhängig einfärben
RBB86 am 24.02.2010 um 12:26 Uhr (0)
Hallo,habe es leider nach viel rumprobieren nicht geschaftCode:Dim Selection1 As Selection Dim Fläche As Reference Selection1 = CATIA.ActiveDocument.Selection Selection1.Clear() Selection1.Add(CATIA.ActiveDocument.Part.Mainbody) Selection1.VisProperties.SetVisibleColor(0, 255, 255, 0)Wenn ich es so schreibe, wird der gesammte Hauptkörper eingefärbt. Ist soweit verständlich.Was muss ich denn für "Mainbody" schreiben, damit nur eine bestimmte Fläche eingefärbt wird???Bitte um HilfeGruß
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : eine Fläche Benutzerunabhängig einfärben
RBB86 am 24.02.2010 um 17:34 Uhr (0)
Hallo nochmal,leider funktioniert es immer noch nicht. Die Fläche wird angewählt, aber die Farbe bleibt grau, unverändert.Code:Dim Selection1 As SelectionDim Fläche As ReferenceFläche = Mypart.CreateReferenceFromBRepName("RSur:(Face:(Brp:(Pad.1;2);None:();Cf11:());WithPermanentBody;WithoutBuildError;WithSelectingFeatureSupport;MFBRepVersion_CXR15)", Block1)Selection1 = CATIA.ActiveDocument.SelectionSelection1.Clear()Selection1.Add(Fläche)Selection1.VisProperties.SetVisibleColor(255, 0, ...
| In das Form CATIA V5 Programmierung wechseln |
|
CATIA V5 Programmierung : eine Fläche Benutzerunabhängig einfärben
RBB86 am 24.02.2010 um 23:06 Uhr (0)
@Jens Hansen:danke für deinen Tipp, leider möchte es einfachn nicht funktionieren!Ich habe einen Würfel erzeugt und habe es dort auch mit der Farbe probiert, leider ohne Erfolg.Vieleicht kann jemand das Makro bei sich reinladen um zu überprügen woran es liegtCode:Dim CATIA As INFITF.Application Dim Mydoc As PartDocument Dim Mysel As Selection Dim Mypart As Part Dim Body1 As Body Dim ref1 As Reference Dim factory2d1 As Factory2D Dim Shapefactory1 As ShapeFact ...
| In das Form CATIA V5 Programmierung wechseln |
|
Anzeige:
Anzeige: (Infos zum Werbeplatz)
 |